﻿using DongFangGuoKai.WMSPlatform.Service.OutboundOrderDetail.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.OutboundOrderDetail
{
    public interface ITOutboundOrderDetailService
    {

        /// <summary>
        /// 获取出库单明细  多个物料版本
        /// </summary>
        /// <returns></returns>
        List<TShippingOrderDetailPlusDTOGroup> GetTShippingOrderDetailPlus(int pageIndex, int pageSize, int isNetWork);

        /// <summary>
        /// 出库复核 最终确定按钮
        /// </summary>
        /// <param name="OrderDTO"></param>
        /// <param name="errorMsg"></param>
        /// <returns></returns>
        bool ChukuMsg(SubmitOutListDTONoNet OrderDTO, out string errorMsg);

        /// <summary>
        /// 添加出库管理 多个物料版本
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        bool AddTShippingOrderDetailPlus(TShippingOrderDetailPlusDTO model, out string msg);

        /// <summary>
        /// 显示出库表
        /// </summary>
        /// <param name="billType"></param>
        /// <param name="houseid"></param>
        /// <param name="name"></param>
        /// <param name="statusNum"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<GetChukuDanDTO> GetAllTShippingOrderDetailPlus(int? billType, int? houseid, string? name, int pageIndex, int pageSize, out int totalCount, int? statusNum);

        /// <summary>
        /// 获取单个出库单
        /// </summary>
        /// <param name="res"></param>
        /// <returns></returns>
        GetChukuDanDTOHn? GetOneTShippingOrderDetailPlus(out bool res);

        /// <summary>
        /// 修改单子为已回传
        /// </summary>
        /// <param name="orderSn">出库单号</param>
        /// <returns></returns>
        bool UpdOutShippingStatus(string orderSn, out string? errorMsg);
    }
}
